package la.bbs558.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/**
 * 用户消息(UserMessage)表实体类
 *
 * @author weihanmin
 * @since 2023-12-22 10:57:09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserMessage extends Model<UserMessage> {
    
    private Long id;
    
    private Long userId;
    
    /**
     * 1=系统消息 2=回复消息
     */
    private Integer messageType;
    
    /**
     * 消息内容
     */
    private String msgContent;
    
    /**
     * 驳回原因
     */
    private String auditReason;
    
    /**
     * 0=未读 1=已读
     */
    private Integer state;
    
    /**
     * 帖子id
     */
    private Long postId;
    
    /**
     * 回复id
     */
    private Long replyId;
    
    /**
     * 回复id
     */
    private Long fromUserId;
    
    private Date createTime;
    

    //获取主键值
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
